import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: () => import('@/App.vue'),
  },
  {
    path: '/found',
    component: () => import('@/views/found/found.vue'),
  },
  {
    path: '/recommend',
    component: () => import('@/views/recommend/recommend.vue'),
  },
  {
    path: '/newmusic',
    component: () => import('@/views/newmusic/newmusic.vue'),
  },
  {
    path: '/newmv',
    component: () => import('@/views/newmv/newmv.vue'),
  },
  {
    path: '/search',
    component: () => import('@/views/search/search.vue'),
  },
  {
    path: '/musicdetail',
    component: () => import('../views/musicdetail/musicdetail.vue'),
  },
  {
    path: '/',
    redirect: '/found'
  }
]

const router = new VueRouter({
  routes
})

export default router
